import { request } from '@/utils/request';

// 获取阿里 oss key
export function getOssKey(data) {
  return request(
    {
      url: '/oss/getOssKey',
      method: 'POST',
      data
    },
    { loading: false, toast: false }
  );
}

// 获取省市下拉框数据
export function regiongetAppProvinceCityTree() {
  return request(
    {
      url: '/region/getAppProvinceCityTree',
      method: 'POST',
      data: {}
    },
    { loading: false, toast: false }
  );
}
// 获取支付方式
export function settingsgetPaySettings() {
  return request(
    {
      url: '/settings/getPaySettings',
      method: 'POST',
      data: {}
    },
    { loading: false, toast: false }
  );
}
// 水单支付凭证上传
export function waterBillPayApprovesubmitPayVoucherApp(data) {
  return request({
    url: '/waterBillPayApprove/submitPayVoucherApp',
    method: 'POST',
    data
  });
}

// 获取字典数据
export function clientdictgetDictList(data) {
  return request(
    {
      url: '/client/dict/getDictList',
      method: 'POST',
      data
    },
    { loading: false, toast: false }
  );
}

// 获取字典数据(不用登录)
export function clientdictgetSimpleDictList(data) {
  return request(
    {
      url: '/client/dict/getSimpleDictList',
      method: 'POST',
      data
    },
    { loading: false, toast: false }
  );
}

// 消息未读统计
export function providerNoticegetNoticeUnreadCount() {
  return request(
    {
      url: '/providerNotice/getNoticeUnreadCount',
      method: 'POST',
      data: {}
    },
    { toast: false }
  );
}

// 查询app 最新版本
export function getAppLatestVersion(data) {
  return request(
    {
      url: '/appDownload/getAppLatestVersion',
      method: 'POST',
      data
    },
    { loading: false, toast: false }
  );
}

// 获取单个苹果产品
export function applegetAppleProduct() {
  return request(
    {
      url: '/apple/getAppleProduct',
      method: 'POST',
      data: {}
    },
    { loading: false, toast: false }
  );
}

// 记录已经购买过的苹果产品
export function appleaddAppleProduct(data) {
  return request(
    {
      url: '/apple/addAppleProduct',
      method: 'POST',
      data
    },
    { loading: false, toast: false }
  );
}

// 苹果用户成为渠道代理
export function appleappleBecomeChannelAgent() {
  return request(
    {
      url: '/apple/appleBecomeChannelAgent',
      method: 'POST',
      data: {}
    },
    { loading: false, toast: false }
  );
}
